Package com.cisco.pt.ipc.sim.impl
Class HostIpImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.ProcessImpl
com.cisco.pt.ipc.sim.impl.HostIpImpl
Information provided by the PKI file:
\class HostIp
\brief HostIp handles and manipulates the default gateway on end devices.
\example network().getDevice("PC0").getProcess("HostIpProcess")
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionHostIpImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionInformation provided by the PKI file:voidsetDefaultGateway(IPAddress gatewayIp) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.sim.impl.ProcessImpl
getOwnerDeviceMethods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSessionMethods inherited from interface com.cisco.pt.ipc.sim.Process
getOwnerDevice
-
Constructor Details
-
HostIpImpl
public HostIpImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
setDefaultGateway
Information provided by the PKI file:
\brief Sets the default gateway with the specified IP address. \param gatewayIp, the IP address of the gateway.- Specified by:
setDefaultGatewayin interfaceHostIp- Parameters:
gatewayIp- Takes in a parameter of gatewayIp
-
getDefaultGateway
Information provided by the PKI file:
\brief Returns the IP address of the default gateway. \return ip, the IP address of the default gateway.- Specified by:
getDefaultGatewayin interfaceHostIp- Returns:
- IPAddress Returns a IPAddress
-